<?php

namespace App\Transformers\Admin;

use League\Fractal\TransformerAbstract;

class SettingTransformer extends TransformerAbstract
{
    public function transform($setting)
    {
        return [
            'id' => $setting->id,
            'type' => $setting->type,
            'cn_name' => $setting->cn_name,
            'value' => $setting->value,
        ];
    }
}

